@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.title {
  display: flex;

  .iconfont {
    cursor: pointer;
    
    &:hover {
      color: $primaryColor;
      animation: spin 1s linear infinite;
    }
  }
}

.left_side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;

  .item_li {
    height: 100%;
    overflow-y: auto;
    width: 100%;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;

    /* IE 10+ */
    &::-webkit-scrollbar {
      display: none;
      /* Chrome Safari */
    }

    .load_more {
      display: flex;
      align-items: center;
      justify-content: center;
      color: #999;
      font-size: 11px;
      margin-bottom: 12px;

      &:hover {
        color: #007cff;
        cursor: pointer;
      }
    }

    .on_more {
      display: flex;
      align-items: center;
      justify-content: center;
      color: #999;
      font-size: 11px;
      margin-bottom: 12px;
    }

    .li_c {
      .item_c {
        position: relative;
        right: 50%;
        transform: translateX(50%);
        font-size: 10px;
        color: #999;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .oneself_c {
        display: flex;
        flex-direction: column;
        align-items: flex-end;

        .top_note {
          display: flex;
          align-items: end;
          flex-direction: row-reverse;
          flex-direction: column;
          width: 100%;

          .content_c {
            max-width: 300px;
            margin: 8px 30px 20px 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
            align-items: flex-end;

            .text_c {
              padding: 5px 8px;
              color: #333;
              white-space: pre-wrap;
              font-size: 12px;
              background-color: #e2e7f7;
              border-radius: 6px 0 6px 6px;
              display: inline-block;
            }

            .img_container {
              display: grid;
              grid-template-columns: auto;
              row-gap: 4px;
            }
          }

          .item_name {
            margin-right: 5px;
            font-size: 12px;
            color: #666;
          }
        }
      }

      .top_note {
        .user {
          display: flex;
          align-items: center;

          .avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
          }

          .item_name {
            margin-left: 5px;
            font-size: 12px;
            color: #666;
          }
        }

        .content_c {
          margin: 8px 0 20px 30px;
          display: flex;
          flex-direction: column;
          gap: 4px;
          max-width: 300px;
          align-items: flex-start;

          .text_c {
            padding: 5px 8px;
            color: #333;
            white-space: pre-wrap;
            font-size: 12px;
            background-color: #e2e7f7;
            border-radius: 0 6px 6px 6px;
            // box-shadow: 0 0 1px 1px #00000022;
            word-wrap: break-word;
            word-break: break-all;
            display: inline-block;
          }

          .img_container {
            display: grid;
            grid-template-columns: auto;
            row-gap: 4px;
          }
        }
      }
    }
  }

  .chatInput {
    width: 100%;
    box-sizing: border-box;
  }
}

.f_content {
  width: 100%;
  box-sizing: border-box;
  background-color: #fff;

  .upload_send {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;

    .btn_send {
      color: #00c0c0;
      font-size: 12px;
      cursor: pointer;
      margin-left: 8px;

      &:hover {
        color: #00c0c0ab;
      }
    }

    .btn_uploading {
      cursor: pointer;
      font-size: 16px;
    }
  }

  :deep(.el-textarea .el-input__count) {
    right: 40px;
  }

  [contenteditable]:focus {
    outline: none;
  }

  [contenteditable]:empty:before {
    content: attr(placeholder);
    color: #cccccc;
    font-size: 12px;
  }
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 8px;

  .content_send_upload {
    display: flex;
    flex-direction: column;
    gap: 8px;

    div.content {
      white-space: pre-wrap;
      font-size: 12px;
      word-wrap: break-word;
      word-break: break-all;
      display: inline-block;
      background-color: #f2f3f5;
      border-radius: 4px;
      box-sizing: border-box;
      padding: 8px;
      height: 180px;
      text-align: left;
      outline: none;
      overflow: auto;
    }

    div.content:empty:before {
      content: attr(placeholder);
      color: #a8abb2;
    }

    .btn_group {
      display: flex;
      justify-content: space-between;
    }
  }

  .visit_type {
    display: flex;
    justify-content: space-between;

    .visit_type_text {
      color: #000;
    }

    :deep(.el-radio) {
      height: 18px;
      margin: 0 !important;

      .el-radio__label {
        transform: scale(0.9);
        font-size: 12px;
        padding: 0;
      }
    }
  }
}